<div xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" class="gw-tree-body">
    <c:forEach items="#{treeBn.items}" var="d">
        <c:choose>
            <c:when test="#{d.linkType==0}">
                <div class="gw-table-row gw-table-row-hl" gw-id="#{d.id}" gw-pr="#{d.parentId}" gw-ch="#{d.hasChild}" gw-sl="#{d.selected}" gw-xp="#{d.expanded}" gw-ld="#{d.expanded}">
                    <div class="gw-tree-cell"><div class="gw-tree-active-border#{d.selected}"><div class="gw-tree-cell-selected#{d.selected}"/></div></div>
                    <div class="gw-tree-cell"><div class="gw-tree-active-border#{d.expanded} gw-tree-lvl#{d.level}"><div class="gw-tree-cell-expanded#{d.expanded}"/></div></div>
                    <div class="gw-tree-cell">#{d.name}</div>
                </div>
            </c:when>
            <c:when test="#{d.linkType==1}">
                <a href="#{d.url}" class="gw-table-row gw-table-row-hl" gw-id="#{d.id}" gw-ch="#{d.hasChild}" gw-pr="#{d.parentId}" gw-sl="#{d.selected}" gw-xp="#{d.expanded}" gw-ld="#{d.expanded}">
                    <div class="gw-tree-cell"><div class="gw-tree-active-border#{d.selected}"><div class="gw-tree-cell-selected#{d.selected}"/></div></div>
                    <div class="gw-tree-cell"><div class="gw-tree-active-border#{d.expanded} gw-tree-lvl#{d.level}"><div class="gw-tree-cell-expanded#{d.expanded}"/></div></div>
                    <div class="gw-tree-cell">#{d.name}</div>
                </a>
            </c:when>
            <c:when test="#{d.linkType==2}">
                <div class="gw-table-row gw-table-row-hl" gw-id="#{d.id}" gw-pr="#{d.parentId}" gw-ch="#{d.hasChild}" gw-sl="#{d.selected}" gw-xp="#{d.expanded}" gw-ld="#{d.expanded}">
                    <a href="#{d.url}" class="gw-tree-cell"><div class="gw-tree-active-border#{d.selected}"><div class="gw-tree-cell-selected#{d.selected}"/></div></a>
                    <div class="gw-tree-cell"><div class="gw-tree-active-border#{d.expanded} gw-tree-lvl#{d.level}"><div class="gw-tree-cell-expanded#{d.expanded}"/></div></div>
                    <div class="gw-tree-cell">#{d.name}</div>
                </div>
            </c:when>
        </c:choose>
    </c:forEach>
</div>